﻿<%@ Page Title="" Language="C#" MasterPageFile="~/Views/Shared/MasterPage.Master"Inherits="System.Web.Mvc.ViewPage<GestionEducativa.Models.FacturasViewModel>" %>

<asp:Content ID="Content1" ContentPlaceHolderID="TitleContent" runat="server">
    Gestión Educativa
</asp:Content>
<asp:Content ID="Content2" ContentPlaceHolderID="MainContent" runat="server">
    <a href="#" id="BtnAgregar">Agregar factura</a> | <a href="#" id="BtnAnular">Anular factura</a>

    <div id="formfacturas" style="padding: 20px">
    </div>

</asp:Content>
<asp:Content ID="Script" ContentPlaceHolderID="HeaderContent" runat="server">
    <script type="text/javascript">
        $(document).ready(function () {

            $('#BtnAgregar').click(function () {
                $.ajax({
                    url: '<%:Url.Content("~/GestionEscolar/AgregarFacturas")%>',
                    cache: false,
                    type: "GET",
                    dataType: "html",
                    success: function (html) {
                        $('#formfacturas').html(html)
                    }
                });
            });

        });
    </script>
</asp:Content>
